/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License"),
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @addtogroup TeeTrusted
 * @{
 *
 * @brief TEE（Trusted Excution Environment）可信执行环境API。
 *
 * 提供安全能力API，例如可信存储、加解密及可信时间等，用于可信应用程序开发。
 *
 * @since 20
 */

/**
 * @file tee_notify_set_priority.h
 *
 * @brief 提供设置影子线程优先级的接口。
 *
 * @library NA
 * @kit TEEKit
 * @include <TEEKit/tee_notify_set_priority.h>
 * @syscap SystemCapability.Tee.TeeClient
 * @since 20
 */

#ifndef TEE_NOTIFY_SET_PRIORITY_H
#define TEE_NOTIFY_SET_PRIORITY_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief 支持设置影子线程的优先级。
 *
 * @param priority_ree [IN]影子线程的优先级。
 *
 * @return 0：设置成功。
 *         TEE_ERROR_ACCESS_DENIED：无访问权限（线程未设置影子线程标志）。
 *         TEE_ERROR_BAD_PARAMETERS：传入的priority_ree参数无效。
 *         -1：设置优先级失败。
 * @since 20
 */
int spi_notify_set_shadow_priority(uint32_t priority_ree);

#ifdef __cplusplus
}
#endif

#endif
/** @} */